/**
 * @Description 评价Serviece曾
 * @author 20155872 游宇
 * @create 2018-05-10 10:12
 **/

package com.campus_information_portal.service;

import com.campus_information_portal.entity.Remark;
import com.campus_information_portal.util.Msg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className RemarkService
 * @Description 评价Serviece层
 * @author 20155872 游宇
 * @create 2018-05-10 10:12
 **/
public interface RemarkService {
    /**
     * @Description: 根据学期和学生id 来查询某学生某学期的评教记录
     * @author: 20155872 游宇
     * @methodName: searchRemarks
     * @param:  int stu_info_id, int term_id
     * @returnType: Msg
     * @createTime: 2018/5/14 18:07
     **/
    Msg searchRemarks(int stu_info_id,int term_id);

    /**
     * @Description: 插入一条评价记录
     * @author: 20155872 游宇
     * @methodName: addremark
     * @param: Remark remark
     * @returnType: Msg
     * @createTime: 2018/5/14 18:07
     **/

    Msg addRemark(Remark remark);

    /**
     * @Description: 根据remarkid来获取remark记录
     * @author: 20155872 游宇
     * @methodName: updateRemark
     * @param: Remark remark
     * @returnType: Msg
     * @createTime: 2018/5/15 16:21
     **/
    Msg updateRemark(Remark remark);

    /**
     * @Description: 根据remarkId 删除一条remark记录
     * @author: 20155872 游宇
     * @methodName: deleteByRemarkId
     * @param: int remarkId
     * @returnType: Msg
     * @createTime: 2018/5/15 16:55
     **/
    Msg deleteByRemarkId(int remarkId);

    /**
     * @Description: 根据教师信息id和学期id来查询某个教师某个学期问题9 的所有建议
     * @author: 20155872 游宇
     * @methodName: getAllQuestionNineByteInfoIdAndterm
     * @param:  int teInfoId, int termId
     * @returnType: Msg
     * @createTime: 2018/5/17 9:03
     **/
    Msg getAllMarkNineByteInfoIdAndterm(int teInfoId,int termId);

    /**
     * @Description: 根据教师信息id和学期id来查询某个教师某个学期问题10 的所有建议
     * @author: 20155872 游宇
     * @methodName: getAllQuestionNineByteInfoIdAndterm
     * @param:  int teInfoId, int termId
     * @returnType: Msg
     * @createTime: 2018/5/17 9:03
     **/
    Msg getAllMarkTenByteInfoIdAndterm(int teInfoId,int termId);

    /**
     * @Description: 查询某个学期、某个老师的平均得分
     * @author: 20155872 游宇
     * @methodName: getAvgGrade
     * @param: int termId,int teInfoId
     * @returnType: Msg
     * @createTime: 2018/5/17 11:18
     **/
     Msg getAvgGrade(int termId,int teInfoId);

}
